package test;

import java.util.Properties;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.whir.rd.service.api.sendFlow.QMSSendEzFlowService;

public class Tes1 {
	public static void main(String[] args) {
		Properties props = QMSSendEzFlowService.loadProperties("qmsConfig.properties");
		
		System.out.println("productStageKey===:"+props.getProperty("productStageKey"));
		System.out.println("flowKeyConfig===:"+props.getProperty("flowKeyConfig"));
		System.out.println("flowKeyConfig===:"+props.getProperty("flowKeyConfig1"));
		
		JSONArray arr = JSONArray.parseArray(props.getProperty("flowKeyConfig"));
		for(int i=0;i<arr.size();i++){
			JSONObject json = arr.getJSONObject(i);
			System.out.println("json.getString(\"flowKey\")===："+json.getString("flowKey"));
			System.out.println("json.getString(\"productStageValue\")===："+json.getString("productStageValue"));
		}
	}
}
